package com.dna.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dna.entity.LogEntity;
import com.dna.mapper.LogMapper;
import com.dna.service.LogService;

@Service
public class LogServiceImpl implements LogService {

	@Autowired
	private LogMapper logMapper;

	@Override
	public LogEntity queryById(Long id) {
		return logMapper.selectByPrimaryKey(id);
	}

	@Override
	public LogEntity queryOne(LogEntity log) {
		return logMapper.selectOne(log);
	}

	@Override
	public List<LogEntity> queryAll() {
		return logMapper.selectAll();
	}

	@Override
	public List<LogEntity> queryList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<LogEntity> queryPageList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@Transactional
	public void save(LogEntity Log) {
		logMapper.insertSelective(Log);

	}
}
